<?php

namespace app\common\util\base;

use app\common\util\plug\PlugInstall;

abstract class BaseObserver
{
    protected PlugInstall $server;
    public function __construct(BaseServer $server = null)
    {
        if ($server) {
            $this->server = $server;
            $this->server->addObserver($this);
        }
    }

    abstract public function handle();
}